package com.design.work421;

public class ShoeInfoVisitorImpl implements ShoelnfoVisitor {
    private StringBuilder info = new StringBuilder();

    @Override
    public void visit(RunningShoes shoes) {
        info.append("🏃 ").append(shoes.describeShoes()).append("\n\n");
    }

    @Override
    public void visit(BasketballShoes shoes) {
        info.append("🏀 ").append(shoes.describeShoes()).append("\n\n");
    }

    @Override
    public void visit(HikingShoes shoes) {
        info.append("⛰ ").append(shoes.describeShoes()).append("\n\n");
    }

    public String getShoeInfo() {
        return info.toString();
    }
}
